package com.bdqn.jwt1.service;

import com.bdqn.jwt1.entity.Product;
import com.bdqn.jwt1.mapper.ProductMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductService {
    @Autowired
    ProductMapper productMapper;

    //查找所有商品
    public List<Product> findAllProducts() {
        return productMapper.findAllProducts();
    }
}
